package v1

import (
	"github.com/gin-gonic/gin"
	"net/http"
)

type UserRequest struct {
	Name string
}

type UserResponse struct {
	Msg string
}


func _User(c HTTPClient) gin.HandlerFunc {
	return func(ctx *gin.Context) {
		name := ctx.DefaultQuery("name", "hello")
		req := UserRequest{
			name,
		}
		userRep, _ := c.GetUser(ctx, req)
		ctx.JSON(http.StatusOK, gin.H{
			"msg": userRep,
		})
	}
}
